//模块接口文件，暴露给外部模块使用
import {request} from "./core";
import METHOD from "./methods";
import URL from "./url";

const APIClient = {
  //将对象注入Vue全局
  install(Vue){
    Vue.prototype.$API = this;
  },

  login(mobile,password){return request(METHOD.POST,URL.LOGIN,{mobile:mobile,pwd:password})},
  register(mobile,password,code,nikcname){return request(METHOD.POST,URL.REGISTER,{mobile:mobile,pwd:password,code:code,nikcname:nikcname})},
  special(mobile,password,code,nikcname){return request(METHOD.POST,URL.SPECIAL,{mobile:mobile,pwd:password,code:code,nikcname:nikcname})},
  specialxq(mobile,password,code,nikcname){return request(METHOD.POST,URL.SPECIALXQ,{mobile:mobile,pwd:password,code:code,nikcname:nikcname})},
  jptj(mobile,password,code,nikcname){return request(METHOD.POST,URL.JPTJ,{mobile:mobile,pwd:password,code:code,nikcname:nikcname})},
  spfl(mobile,password,code,nikcname){return request(METHOD.POST,URL.SPXQ,{mobile:mobile,pwd:password,code:code,nikcname:nikcname})},
  boutique(params){return request(METHOD.GET,URL.BOUTIQUE,params)}



 
}

export default APIClient;